package com.ruoyi.teaching.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class CommentVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="反馈id")
    private Long id;

    @ApiModelProperty(value="反馈标题")
    private String title;

    @ApiModelProperty(value="反馈内容")
    private String message;

    @ApiModelProperty(value="反馈图片")
    private List<String> imageUrlList;

    @ApiModelProperty(value="反馈图片")
    private String imageUrl;

    @ApiModelProperty(value = "上级评论id")
    private Long commentId;

    @ApiModelProperty(value = "顶级评论id")
    private Long topCommentId;

    @ApiModelProperty(value = "评论数量")
    private Integer replyCount;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "用户Id")
    private Integer createId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "子评论")
    private List<CommentVO> children;
}
